<?php

// Return json encoded data
header ('Content-type: application/json');

/**
 * Script used to get information about a page's css
 */

require_once '../core/db.php';

$sql = "SELECT themeId, themeFile FROM siteThemes, sitePages
        WHERE themeId = css AND pageId=?";
$sth = $db->prepare ($sql);
$sth->execute(array ($_POST['id']));
die (json_encode  ($sth->fetch (PDO::FETCH_ASSOC)));
?>
